<?php
	/**
	 * The ContentPageType class defined here contains
	 * code for the ContentPageType enumerated type.  It represents
	 * the enumerated values found in the "content_page_type" table
	 * in the database.
	 *
	 * To use, you should use the ContentPageType subclass which
	 * extends this ContentPageTypeGen class.
	 *
	 * Because subsequent re-code generations will overwrite any changes to this
	 * file, you should leave this file unaltered to prevent yourself from losing
	 * any information or code changes.  All customizations should be done by
	 * overriding existing or implementing new methods, properties and variables
	 * in the ContentPageType class.
	 *
	 * @package flx_qcubed
	 * @subpackage GeneratedDataObjects
	 */
	abstract class ContentPageTypeGen extends QBaseClass {
		const Home = 1;
		const Projects = 2;
		const Services = 3;
		const CompanyProfile = 4;
		const About = 5;
		const Contact = 6;
		const PrivacyPolicy = 7;
		const Legal = 8;

		const MaxId = 8;

		public static $NameArray = array(
			1 => 'Home',
			2 => 'Projects',
			3 => 'Services',
			4 => 'Company Profile',
			5 => 'About',
			6 => 'Contact',
			7 => 'Privacy Policy',
			8 => 'Legal');

		public static $TokenArray = array(
			1 => 'Home',
			2 => 'Projects',
			3 => 'Services',
			4 => 'CompanyProfile',
			5 => 'About',
			6 => 'Contact',
			7 => 'PrivacyPolicy',
			8 => 'Legal');

		public static function ToString($intContentPageTypeId) {
			switch ($intContentPageTypeId) {
				case 1: return 'Home';
				case 2: return 'Projects';
				case 3: return 'Services';
				case 4: return 'Company Profile';
				case 5: return 'About';
				case 6: return 'Contact';
				case 7: return 'Privacy Policy';
				case 8: return 'Legal';
				default:
					throw new QCallerException(sprintf('Invalid intContentPageTypeId: %s', $intContentPageTypeId));
			}
		}

		public static function ToToken($intContentPageTypeId) {
			switch ($intContentPageTypeId) {
				case 1: return 'Home';
				case 2: return 'Projects';
				case 3: return 'Services';
				case 4: return 'CompanyProfile';
				case 5: return 'About';
				case 6: return 'Contact';
				case 7: return 'PrivacyPolicy';
				case 8: return 'Legal';
				default:
					throw new QCallerException(sprintf('Invalid intContentPageTypeId: %s', $intContentPageTypeId));
			}
		}

	}
?>